home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / fire_it_.swf / scripts / __Packages / #51.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  4.4 KB  |  64 lines

  1. class ┬º#51┬º
  2. {
  3.    static var PAGES = 4;
  4.    static var PAGE1 = "<p>Score points by making baskets from the <span class=\'highlight\'>Hot Spot</span> (the moving, blue circle).  Baskets only count if your player shoots from the Hot Spot.<br> </p><p class=\'heading\'>MOVING</p><p>Use the <span class=\'key\'>Up</span>, <span class=\'key\'>Down</span>, <span class=\'key\'>Left</span> and <span class=\'key\'>Right</span> arrow keys.<br> </p><p class=\'heading\'>SHOOTING</p><p>Press and hold the <span class=\'key\'>Space Bar</span> to being shooting.<br>Release the <span class=\'key\'>Space Bar</span> as your player approaches the high point of his jump.<br>Don\'t hold on for too long! Shots released after your player reaches the highest point of his jump will miss.<br> </p>";
  5.    static var PAGE2 = "<p class=\'heading\'>SCORING</p><p>Normal shots are worth 2 points.<br>Shots from beyond the arc are worth 3 points.<br> </p><p class=\'heading\'>ACCURACY COUNTS</p><p>Make all the shots required in a round and receive one bonus point for each basket.<br> </p><p>Miss a basket and lose 5 seconds from the time allocated for the round.<br> </p><p class=\'heading\'>TIME BONUS</p><p>Complete a round before time runs out and receive one bonus point for every second left on the clock.<br> </p>";
  6.    static var PAGE3 = "<p class=\'heading\'>PRESSURE SHOTS</p><p>Occasionally the Coach will give you a <span class=\'highlight\'>Pressure Shot</span> (indicated by a P on the Hot Spot). Pressure shots are worth 3X the shot\'s normal value.<br> </p><p class=\'heading\'>ON FIRE</p><p>Make 5 baskets in a row and you\'re <span class=\'highlight\'>on fire</span>! Shots made while on fire are worth 2X their normal value.<br> </p><p>If you make a pressure shot while on fire, you will earn 5X its normal value.</p>";
  7.    static var PAGE4 = "<p class=\'heading\'>STREAKS</p><p>Make 15 baskets in a row and go on a <span class=\'highlight\'>streak</span>. Baskets made on a streak get you:<br> </p><p>  15-19: 1 extra point</p><p>  20-24: 2 extra points</p><p>  25-29: 3 extra points</p><p>  30-34: 4 extra points</p><p>  35-39: 5 extra points</p><p>  40-44: 6 extra points</p><p>  45-49: 7 extra points</p><p>  50-54: 8 extra points</p><p>  55-59: 9 extra points</p><p>  60-64: 10 extra points</p><p>  65-69: 11 extra points<br> </p><p>Streak bonuses add up in addition to any other bonuses.</p>";
  8.    function ┬º#51┬º()
  9.    {
  10.    }
  11.    static function setup()
  12.    {
  13.       var _loc2_ = "p {font-family: Arial; font-size: 11; font-weight: bold;} " + ".heading {font-family: Arial; font-size: 12; font-weight: bold; color: #F9D17F;}" + ".key {font-family: Courier New; font-size: 12; font-weight: bold; color: #FFFFCC;}" + ".highlight {font-family: Arial; font-size: 11; font-weight: bold; color: #FCDCC7;}";
  14.       var _loc4_ = new TextField.StyleSheet();
  15.       _loc4_.parseCSS(_loc2_);
  16.       _root["#169"].html = true;
  17.       _root["#169"].styleSheet = _loc4_;
  18.       _loc2_ = "p {font-family: Arial; font-size: 11; font-weight: bold;} " + ".heading {font-family: Arial; font-size: 12; font-weight: bold;}" + ".key {font-family: Courier New; font-size: 12; font-weight: bold;}" + ".highlight {font-family: Arial; font-size: 11; font-weight: bold;}";
  19.       var _loc3_ = new TextField.StyleSheet();
  20.       _loc3_.parseCSS(_loc2_);
  21.       _root["#158"].html = true;
  22.       _root["#158"].styleSheet = _loc3_;
  23.       eval("#51")["#208"](1);
  24.    }
  25.    static function ┬º#208┬º(┬º#83┬º)
  26.    {
  27.       _root["#169"].text = eval("#51")["PAGE" + eval("#83")];
  28.       _root["#158"].text = eval("#51")["PAGE" + eval("#83")];
  29.       var _loc2_ = true;
  30.       if(eval("#83") == 1)
  31.       {
  32.          _loc2_ = false;
  33.          _root["#180"].onRelease = null;
  34.       }
  35.       else
  36.       {
  37.          _loc2_ = true;
  38.          _root["#180"].onRelease = function()
  39.          {
  40.             eval("#51")["#208"](eval("#83") - 1);
  41.          };
  42.       }
  43.       _root["#180"]._visible = _loc2_;
  44.       _root["#343"]._visible = _loc2_;
  45.       _root["#371"]._visible = _loc2_;
  46.       if(eval("#83") == eval("#51").PAGES)
  47.       {
  48.          _loc2_ = false;
  49.          _root["#179"].onRelease = null;
  50.       }
  51.       else
  52.       {
  53.          _loc2_ = true;
  54.          _root["#179"].onRelease = function()
  55.          {
  56.             eval("#51")["#208"](eval("#83") + 1);
  57.          };
  58.       }
  59.       _root["#179"]._visible = _loc2_;
  60.       _root["#341"]._visible = _loc2_;
  61.       _root["#369"]._visible = _loc2_;
  62.    }
  63. }
  64.